package com.pro.mapper;

import com.pro.pojo.JsUserFeedback;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsFeedbackMapper
 * Package:com.pro.mapper
 * Description:
 *
 * @Date:2021/11/12 19:18
 * @Author: XJR
 */
public interface JsFeedbackMapper {
    //查询反馈数据
    public List<JsUserFeedback> selectUserFeedBack(
            @Param("feedbackType") String feedbackType,
            @Param("feedbackStatus") String feedbackStatus,
            @Param("limit") Integer limit,
            @Param("page") Integer page
            );
    public Integer countUserFeedBack(@Param("feedbackType") String feedbackType,@Param("feedbackStatus") String feedbackStatus);

    //通过id查看审核详情
    public JsUserFeedback selectUserFeedBackById(Integer feedbackId);

    //删除反馈数据
    public Boolean delUserFeedBack(Integer feedbackId);

    //审核
    public Boolean updateUserFeedStatus(JsUserFeedback jsUserFeedback);

    //查询已受理反馈数据
    public List<JsUserFeedback> selectAdoptUserFeedBack(String feedbackType);
    public Integer countAdoptUserFeedBack(String feedbackType);
}
